import {
  requestApi
} from '../util/network'

// 获取用户商品评价列表
export const getMemberevaluateList =
  (params) =>
  requestApi(
    '/Memberevaluate/get_goodsevallist',
    'POST', {
      'page': params.page,
      'per_page': params.per_page
    },
    'member'
  )

export const deleteMemberevaluateList =
  (geval_id, geval_frommemberid, geval_storeid ) =>
  requestApi(
    '/Memberevaluate/delgoodsevaluate',
    'POST', {
      'geval_id':geval_id,
      'geval_frommemberid':geval_frommemberid,
      'geval_storeid':geval_storeid,
    },
    'member'
  )

// 评论图片上传
export const uploadInformPic =
  (file) =>
  requestApi(
    '/Memberevaluate/upload_pic',
    'POST',
    file,
    'member',
    true
  )